FIND_PACKAGE(yaml-cpp REQUIRED)

OPTION(WITH_PYTHON3 "USE PYTHON3 " ON)

# 使用PYthon3版本
IF(WITH_PYTHON3)
    SET(PYTHON_PATH /usr/include/python3.5/)
    ADD_DEFINITIONS(-DWITH_PYTHON3)
ELSE()
    SET(PYTHON_PATH /usr/include/python2.7/)
ENDIF()


IF(${Python_FOUND})
	INCLUDE_DIRECTORIES(${Python_INCLUDE_DIRS})
ELSEIF(${PYTHON_INCLUDE_PATH})
	INCLUDE_DIRECTORIES(${PYTHON_INCLUDE_PATH})
ELSE()
        INCLUDE_DIRECTORIES(${PYTHON_PATH})
ENDIF()

#debug print
add_definitions(-D_PRINT_)

## 支持C++11 因为Yaml-cpp使用了c++11
add_definitions(-std=c++11)

## 核心框架代码
add_subdirectory(framework)
## 生成器代码
add_subdirectory(generator)
## 执行器代码
add_subdirectory(actuator)


